﻿namespace WorkFlow.Data.Model
{
    public class WorkFlowInfo
    {
        string _ID;
        public string ID
        {
            get { return _ID; }
            set { _ID = value; }
        }

        string _WorkFlowName;

        public string WorkFlowName
        {
            get
            {
                return _WorkFlowName;
            }
            set
            {
                _WorkFlowName = value;
            }
        }

        string _User;

        public string User
        {
            get
            {
                return _User;
            }
            set
            {
                _User = value;
            }
        }

        string _Status;

        public string Status
        {
            get
            {
                return _Status;
            }
            set
            {
                _Status = value;
            }
        }
        string _StatusStr;

        public string StatusStr
        {
            get
            {
                switch (_Status)
                {
                    case "0":
                        _StatusStr = "Wait";
                        break;
                    case "1":
                        _StatusStr = "Runing";
                        break;
                    case "2":
                        _StatusStr = "Completed";
                        break;
                    case "3":
                        _StatusStr = "Error";
                        break;
                    case "4":
                        _StatusStr = "Stop";
                        break;
                    default:
                        break;
                }
                return _StatusStr;
            }
        }
        string _Message;

        public string Message
        {
            get
            {
                return _Message;
            }
            set
            {
                _Message = value;
            }
        }
        string _CreateTime;
        public string CreateTime
        {
            get
            {
                return _CreateTime;
            }
            set
            {
                _CreateTime = value;
            }
        }

        string _CompleteTime;
        public string CompleteTime
        {
            get
            {
                return _CompleteTime;
            }
            set
            {
                _CompleteTime = value;
            }
        }

    }
}
